using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerAnimationTrigger:MonoBehaviour
{
    private Player player;
    private Player GetPlayer()
    {
        if (player == null)
        { 
          player=GetComponentInParent<Player>();
        }
        return player;
    
    }

    public void AnimaitonTrigger()
    {
        GetPlayer().AnimationTrigger();
    }

    public void AttackTrigger()
    {
        GetPlayer().AttackTrigger();
    }

    public void CounterAttackTrigger()
    { 
        GetPlayer().CounterAttackTrigger();
    }


    public void ThrowSword()
    {
        SkillManager.instance.swordSkill.CreateSword();
    }
 }
